﻿#include "AppConfig.h"
#include<QFile>
#include<QDataStream>
#include<QDebug>
#include<QApplication>
AppConfig::AppConfig(QObject *parent) : QObject(parent)
{

}

AppConfig::AppConfig(bool misv, QPoint point, QSize siz, QFont font)
    :m_isVisualStatus(misv),m_point(point),m_size(siz),m_font(font)
{

}

bool AppConfig::store()
{
    bool ret ;
    QFile file(QApplication::applicationDirPath()+"/notepad.config");
    if(file.open(QIODevice::WriteOnly))
    {


        ret = true;
        file.close();
    }
    else
    {
        ret = false;
    }

    return ret;
}
